package cn.z2huo.productcenter.management.app.transaction;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.support.TransactionTemplate;

@Configuration
public class TransactionTemplateConfiguration {

    @Bean
    public TransactionTemplate getTransactionTemplate(PlatformTransactionManager manager) {
        return new TransactionTemplate(manager);
    }

}
